package com.weige.conver.controller;

import com.weige.conver.service.EnvDataService;
import com.weige.conver.service.SwitchCabinetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
public class SwitchCabinetController {

    @Autowired
    private SwitchCabinetService switchCabinetService;

    /**
     * 获取开关柜类设备列表（被监测对象）
     * @return
     */
    @GetMapping("/switchCabinetMonitorManager/getAllSwitchCabinetDevices")
    public String getAllEnvDevices() throws IOException {
        return switchCabinetService.getAllSwitchCabinetDevices();
    }
}
